package cn.kgc.springboot1048.spring_vue2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author szz
 * @since 2024-04-10
 */
@Getter
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Houseinfo implements Serializable {



    /**
     * 房屋编号
     */
    @TableId(value = "houseId", type = IdType.AUTO)
    private Long houseId;

    /**
     * 房屋描述
     */
    @TableField("houseDesc")
    private String houseDesc;

    /**
     * 户型编号
     */
    @TableField("typeId")
    private Long typeId;

    /**
     * 租金
     */
    @TableField("monthlyRent")
    private Integer monthlyRent;

    /**
     * 日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("publishDate")
    private Date publishDate;



    @TableField(value = "typeName")
    private String typeName;


}
